package cn.actoncode.boot.server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableMBeanExport;
import org.springframework.jmx.support.RegistrationPolicy;
import org.springframework.scheduling.annotation.EnableAsync;

@EnableAsync
@EnableMBeanExport(registration = RegistrationPolicy.IGNORE_EXISTING)
@SuppressWarnings("SpringComponentScan") // 忽略 IDEA 无法识别 ${actoncode.info.base-package}
@SpringBootApplication(scanBasePackages = {"${actoncode.info.base-package}.server",
        "${actoncode.info.base-package}.module", "${actoncode.info.base-package}.framework.wechat.core.handler"})
public class ActoncodeServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(ActoncodeServerApplication.class, args);
    }

}
